home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 21
/
Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso
/
Aminet
/
util
/
rexx
/
PGPwithYAM.lha
/
SignMail.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-07-06
|
785b
|
36 lines
/* Sign a mail with Phil's PGP for YAM
* $VER: SignMail.rexx 1.3 (06-Jul-97) by Michael Praschl
*/
OPTIONS RESULTS
pgpcommand = '-sat'
pgppath = 'PGP:bin/pgp'
CALL CLOSE 'STDOUT'
CALL CLOSE 'STDIN'
CALL OPEN 'STDIN','CON:0/14/1000/200/YAM-REXX/CLOSE'
CALL PRAGMA '*','STDIN'
CALL OPEN 'STDOUT','*'
IF ~SHOW('Ports','YAM') THEN DO
ADDRESS 'COMMAND'
'Run YAM:YAM NOCHECK HIDE'
'SYS:RexxC/WaitForPort YAM'
END
IF SHOW('Ports','YAM') THEN DO
ADDRESS 'YAM'
GETMAILINFO FILE
mailfile = RESULT
ADDRESS 'COMMAND'
'YAM:Rexx/splitmail' mailfile
if exists('ram:body') then pgppath pgpcommand 'ram:body'
if exists('ram:body.asc') then
if exists('ram:head') then
'join ram:head ram:body.asc to' mailfile
'delete >NIL: ram:head ram:body ram:body.asc'
END